package v1

import (
	"donkey-admin/internal/model/entity"
	"github.com/gogf/gf/v2/frame/g"
)

type DeleteSysTaskLogReq struct {
	g.Meta `path:"deleteSysTaskLog.Delete" tags:"taskLog" method:"delete" summary:"删除定时任务日志"`
}
type DeleteSysTaskLogRes struct {
}

type DeleteSysTaskLogByIdsReq struct {
	g.Meta `path:"deleteSysTaskLogByIds.Delete" tags:"taskLog" method:"delete" summary:"批量删除定时任务日志"`
}
type DeleteSysTaskLogByIdsRes struct {
}

type FindSysTaskLogReq struct {
	g.Meta   `path:"findSysTaskLog.Get" tags:"taskLog" method:"get" summary:"根据ID获取定时任务日志"`
	Uuid     string `json:"uuid" v:"required#任务代码为必填参数"`
	PageSize int    `json:"pageSize"  v:"required|between:1,50#pageSize为必填参数|pageSize应大于等于1且小于等于50"`
	Page     int    `json:"page" v:"required|min:0#page为必填参数|page应大于等于0"`
}
type FindSysTaskLogRes struct {
	PageSize int                 `json:"pageSize"`
	Page     int                 `json:"page"`
	Total    int                 `json:"total"`
	Rows     []entity.SysTaskLog `json:"rows"`
}
